package com.huak.zookeeper.connection;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.CountDownLatch;

/**
 * @author liuhuan
 * @date 2018/9/16 10:40
 * @description
 */
@Slf4j
public class ShanghaiStationDangeCenter extends BaseDangeCenter {

    public ShanghaiStationDangeCenter(CountDownLatch countDownLatch){
        super(countDownLatch,"上海外滩中心");
    }
    @Override
    public void check() {
        try {
            log.info("正在检查站点:{}",this.getStation());
            this.setOk(true);
        }catch (Exception e){
            log.error(e.getMessage(),e);
            this.setOk(false);
        }
        log.info("站点{}已检查完成",this.getStation());
    }
}
